import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/documentation/originate/getList',
    method: 'post',
    data: query
  })
}

export function fetchOriginateAvailableList(query) {
  return request({
    url: '/documentation/originate/getAvailable',
    method: 'post',
    data: query
  })
}

export function fetchOriginate(id) {
  return request({
    url: '/documentation/originate/getDetail',
    method: 'post',
    data: { id }
  })
}


export function saveOriginate(data) {
  return request({
    url: '/documentation/originate/save',
    method: 'post',
    data
  })
}

export function changeOriginateStatusByID(pv) {
  return request({
    url: '/documentation/originate/change-status',
    method: 'post',
    data: pv
  })
}

export function removeOriginateByID(pv) {
  return request({
    url: '/documentation/originate/delete',
    method: 'post',
    data: pv
  })
}